import React,{ Component } from 'react';
import {
    BrowserRouter as Router,
    Route
} from 'react-router-dom';
import Login from '../page/login/login'
import Order from '../page/order/order'
import carType from '../page/car_type/car_type'
import Comment from '../page/comment/comment'
import Rider from '../page/rider/rider'
import Pay from '../page/pay/pay'
import trapDetail from '../page/trap_detail/trap_detail'
import Index from '../page/index/index'
import personInfo from '../page/person_info/person_info'
import Phone from '../page/phone/phone'
import editPhone from '../page/edit_phone/edit_phone'
import Identity from '../page/identity/identity'
import myTripes from '../page/my_trips/my_trips'
import driverComment from '../page/driver_comment/driver_comment'
import finishedDetail from '../page/finished_detail/finished_detail'
import paySuccess from '../page/pay_success/pay_success'
import About from '../page/about/about'
import Guide from '../page/guide/guide'
import News from '../page/news/news'
import Setting from '../page/setting/setting'
import User from '../page/user/user'
import View from '../page/view/view'
import System from "../page/system/system";
import reCharge from '../page/recharge/recharge'
import Wallet from '../page/wallet/wallet'
import Trade from '../page/trade/trade'

export default class RouterMap extends Component{
    constructor(props){
        super(props);
    }
    render(){
        return (
            <Router>
                <div>
                    <Route path="/wx/login" component={ Login } />
                    <Route path="/wx/order" component={ Order } />
                    <Route path="/wx/cartype" component={ carType } />
                    <Route path="/wx/comment" component={ Comment } />
                    <Route path="/wx/rider" component={ Rider } />
                    <Route path="/wx/pay" component={ Pay } />
                    <Route path="/wx/trapdetail" component={ trapDetail } />
                    <Route path="/wx/index" component={ Index } />
                    <Route path="/wx/personinfo" component={ personInfo }/>
                    <Route path="/wx/phone" component={ Phone }/>
                    <Route path="/wx/editphone" component={ editPhone }/>
                    <Route path="/wx/identity" component={ Identity }/>
                    <Route path="/wx/mytrips" component={ myTripes }/>
                    <Route path="/wx/drivercomment" component={ driverComment }/>
                    <Route path="/wx/finisheddetail" component={ finishedDetail }/>
                    <Route path="/wx/paysuccess" component={ paySuccess }/>
                    <Route path="/wx/about" component={ About }/>
                    <Route path="/wx/guide" component={ Guide }/>
                    <Route path="/wx/news" component={ News }/>
                    <Route path="/wx/setting" component={ Setting }/>
                    <Route path="/wx/system" component={ System }/>
                    <Route path="/wx/user" component={ User }/>
                    <Route path="/wx/view" component={ View }/>
                    <Route path="/wx/recharge" component={ reCharge }/>
                    <Route path="/wx/wallet" component={ Wallet }/>
                    <Route path="/wx/trade" component={ Trade }/>
                </div>
            </Router>
        )
    }
}